#include <stdio.h>
int gcd(int a,int b)
{
    while (b!=0)
    {
        int rem=a%b;
        a=b;
        b=rem;
    }
    return a;
}
int main()
{
    int a,b;
    while (scanf("%d%d",&a,&b)!=EOF)
    {
        printf("%d\n",a*b/gcd(a,b));
    }
    return 0;
}
